#include <iostream>
#include <cstring>
#include <cstdio>

using namespace std;

char str[105];
char rev[] = "A   3  HIL JM O   2TUVWXY51SE Z  8 ";
int len;


int palindrome(char* str){
    for(int i = 0; i <= len/2; i++) {
        if(str[i] != str[len-i-1]){
            return 0;
        }
    }
    return 1;
}

int mirror(char* str) {
    for(int i = 0; i <= len/2; i++) {
        if(isalpha(str[i])) {
            if(rev[str[i]-'A'] != str[len-1-i]) {
                return 0;
            }
        }
    }
    return 1;
}

int main() {
    while(~scanf("%s", str)) {
        len = strlen(str);
        cout << str;
        if(palindrome(str)) {
            if(mirror(str)) {
                cout << " -- is a mirrored palindrome." << endl << '\n';
                continue;
            } else {
                cout << " -- is a regular palindrome." << endl << '\n';
                continue;
            }
        }
        if(mirror(str)) {
            if(!palindrome(str)) {
                cout << " -- is a mirrored string." << endl << '\n';
                continue;
            }
        }
        cout << " -- is not a palindrome." << endl << '\n';

    }
    return 0;
}